package com.his.server.utils.dao;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.sql.Array;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;

public interface StatementAdapter
{
    public static interface Statement
    {

        public abstract void setBlob(PreparedStatement preparedstatement, int i, String s, Blob blob)
            throws SQLException;

        public abstract Blob getBlob(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Blob getBlob(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setClob(PreparedStatement preparedstatement, int i, String s, Clob clob)
            throws SQLException;

        public abstract Clob getClob(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Clob getClob(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setBinaryStream(PreparedStatement preparedstatement, int i, String s, InputStream inputstream, int j)
            throws SQLException;

        public abstract InputStream getBinaryStream(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setAsciiStream(PreparedStatement preparedstatement, int i, String s, InputStream inputstream, int j)
            throws SQLException;

        public abstract InputStream getAsciiStream(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setCharacterStream(PreparedStatement preparedstatement, int i, String s, Reader reader, int j)
            throws SQLException;

        public abstract Reader getCharacterStream(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setDate(PreparedStatement preparedstatement, int i, String s, Date date)
            throws SQLException;

        public abstract Date getDate(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Date getDate(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setDate(PreparedStatement preparedstatement, int i, String s, Date date, Calendar calendar)
            throws SQLException;

        public abstract Date getDate(CallableStatement callablestatement, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract Date getDate(ResultSet resultset, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract void setTime(PreparedStatement preparedstatement, int i, String s, Time time)
            throws SQLException;

        public abstract Time getTime(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Time getTime(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setTime(PreparedStatement preparedstatement, int i, String s, Time time, Calendar calendar)
            throws SQLException;

        public abstract Time getTime(CallableStatement callablestatement, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract Time getTime(ResultSet resultset, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract void setTimestamp(PreparedStatement preparedstatement, int i, String s, Timestamp timestamp)
            throws SQLException;

        public abstract Timestamp getTimestamp(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Timestamp getTimestamp(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setTimestamp(PreparedStatement preparedstatement, int i, String s, Timestamp timestamp, Calendar calendar)
            throws SQLException;

        public abstract Timestamp getTimestamp(CallableStatement callablestatement, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract Timestamp getTimestamp(ResultSet resultset, int i, String s, Calendar calendar)
            throws SQLException;

        public abstract void setInteger(PreparedStatement preparedstatement, int i, String s, Integer integer)
            throws SQLException;

        public abstract Integer getInteger(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Integer getInteger(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setBoolean(PreparedStatement preparedstatement, int i, String s, Boolean boolean1)
            throws SQLException;

        public abstract Boolean getBoolean(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Boolean getBoolean(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setLong(PreparedStatement preparedstatement, int i, String s, Long long1)
            throws SQLException;

        public abstract Long getLong(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Long getLong(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setShort(PreparedStatement preparedstatement, int i, String s, Short short1)
            throws SQLException;

        public abstract Short getShort(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Short getShort(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setFloat(PreparedStatement preparedstatement, int i, String s, Float float1)
            throws SQLException;

        public abstract Float getFloat(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Float getFloat(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setDouble(PreparedStatement preparedstatement, int i, String s, Double double1)
            throws SQLException;

        public abstract Double getDouble(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract Double getDouble(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract void setByte(PreparedStatement preparedstatement, int i, String s, Byte byte1)
            throws SQLException;

        public abstract Byte getByte(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Byte getByte(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setString(PreparedStatement preparedstatement, int i, String s, String s1)
            throws SQLException;

        public abstract String getString(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract String getString(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setBigDecimal(PreparedStatement preparedstatement, int i, String s, BigDecimal bigdecimal)
            throws SQLException;

        public abstract BigDecimal getBigDecimal(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract BigDecimal getBigDecimal(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setBytes(PreparedStatement preparedstatement, int i, String s, byte abyte0[])
            throws SQLException;

        public abstract byte[] getBytes(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract byte[] getBytes(ResultSet resultset, int i, String s)
            throws SQLException;

        public abstract void setArray(PreparedStatement preparedstatement, int i, String s, Array array)
            throws SQLException;

        public abstract Array getArray(CallableStatement callablestatement, int i, String s)
            throws SQLException;

        public abstract Array getArray(ResultSet resultset, int i, String s)
            throws SQLException;
    }
}
